/*
 * SysoutDumper.java   2008/07/18
 *
 * Copyright 2008 Web & Zen Multimedia, All rights reserved.
 * Use is subject to license terms.
 */
package it.wzm.lightweightlog;

import java.util.Properties;

/**
 * This Dumper write entry to System.out log, useful for debugging and the default choice in case
 * no dump.properties are found
 */
final class SysoutDumper extends ConsoleDumper {
    
    /**
     * As requested by the serialization
     */
    static final long serialVersionUID=20080718L;    
    
    /**
     * Initialize Dumper with a custom made set of properties
     * @param p Properties
     */
    public SysoutDumper(String name, Properties p) {
        super(name,p);
    }
    
    /**
     * Dump Entry to System.out
     * @param e Anything extending Entry
     */
    @Override
    public <E extends Entry> void dump(E e) {
        System.out.println(e.getLine());
    }
    
}
